export function generateContainerStyle(data = {}) {
  let styles = {'grid-auto-rows': '200px'}
  const { width, height, rowNum, colNum } = data
  styles.display = 'grid'
  styles.width = width || '100%'


  styles.width = height || '100%'

  if (colNum) {
    styles['grid-template-columns'] = `repeat(${colNum},1fr)`
  }
  if (rowNum) {
    styles['grid-template-rows'] = `repeat(${rowNum},1fr)`
  }

  return styles


}